
//出生日期
laydate.render({
    elem: '#bbcstime',
    type: 'date'
});

//预计拍摄时间
laydate.render({
    elem: '#shot_time',
    type: 'date'
});

//上课时间段
laydate.render({
    elem: '#shijianduan'
    ,type: 'time'
    ,range: true
});

$(function () {
    /*调用父窗口的方法*/
    //验证主顾客手机重复
    $('[name="phone_z"]').on('blur',function () {
        var phone_z = $(this).val();
        var name = 'phone_z|phone_f|wechat|qq';

        window.parent.frames.validatorInfo(name,phone_z);
    });
    //验证备顾客手机重复
    $('[name="phone_f"]').on('blur',function () {
        var phone_f = $(this).val();
        var name = 'phone_z|phone_f|wechat|qq';
        window.parent.frames.validatorInfo(name,phone_f);
    });
    //验证微信重复
    $('[name="wechat"]').on('blur',function () {
        var wechat = $(this).val();
        var name = 'phone_z|phone_f|wechat|qq';
        window.parent.frames.validatorInfo(name,wechat);
    });
    //验证qq重复
    $('[name="qq"]').on('blur',function () {
        var qq = $(this).val();
        var name = 'phone_z|phone_f|wechat|qq';
        window.parent.frames.validatorInfo(name,qq);
    });
});
